﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ServiceCore.Tool.JD_Pay
{
    public class refund_Params : JD_Api_Base_Params
    {
        public refund_Params()
        {
            this.Request_URL = CodeContent.Api_Url.refund;
        } 
        /// <summary>
        /// 平台订单号
        /// </summary>
        public string tradeNo { get; set; }
        /// <summary>
        /// 商户订单号
        /// </summary>
        public string outTradeNo { get; set; }
        /// <summary>
        /// 商户退款订单号 商户退款流水号，一个流水号只能退一次
        /// </summary>
        public string outRefundNo { get; set; }
        /// <summary>
        /// 异步通知地址
        /// </summary>
        public string notifyUrl { get; set; }
        /// <summary>
        /// 退款金额
        /// </summary>
        public long amount { get; set; }
        /// <summary>
        /// 操作员编号
        /// </summary>
        public string operId { get; set; }
        /// <summary>
        /// 门店号
        /// </summary>
        public string shopId { get; set; }

        public string goodsInfoList { get; set; }

        public string orderInfo { get; set; }

        public string businessData { get; set; }

        public string extMap { get; set; }

        public string billSplitList { get; set; }

        public string outShopId { get; set; }

        public string deviceInfo { get; set; }
    }


    public class refund_Result
    {
        public string merchantNo { get; set; }

        public string businessCode { get; set; }

        public string outTradeNo { get; set; }

        public string tradeNo { get; set; }
        /// <summary>
        /// 平台退款单号
        /// </summary>
        public string tradeRefundNo { get; set; }
        /// <summary>
        /// 商户退款单号
        /// </summary>
        public string outRefundNo { get; set; }
        /// <summary>
        /// 退款金额
        /// </summary>
        public long amount { get; set; }
        /// <summary>
        /// 商户优惠退款金额
        /// </summary>
        public long merchantCouponAmount { get; set; }
        /// <summary>
        /// 用户退款金额
        /// </summary>
        public long piAmount { get; set; }
        /// <summary>
        /// 平台优惠退款金额
        /// </summary>
        public long couponAmount { get; set; }
        /// <summary>
        /// 币种
        /// </summary>
        public string currency { get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>
        public string payFinishTime { get; set; }
        public string version { get; set; }

        public string resultCode { get; set; }

        public string errCode { get; set; }
        public string errCodeDes { get; set; }
        public string systemId { get; set; }
    }
}